import request from '@/utils/request';
import { getUserInfo } from "@/utils/auth";

// 获取角色列表
export function getRoleListApi(postBody) {
  postBody.userId = getUserInfo().userId;
  return request({
    url: process.env.VUE_APP_SYS_SERVICE + 'api/sysRole/getSysRoleListByPage',
    method: 'post',
    data: postBody
  });
}

// 删除选中角色
export function deleteSelectedRoleApi(ids) {
  return request({
    url: process.env.VUE_APP_SYS_SERVICE + 'api/sysRole/deleteByList',
    method: 'post',
    data: {
      "keyValues": ids
    }
  });
}
